<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>重点</title>
</head>
<body>
<button onclick="funA()">跳转</button>
</body>
</html>
<script>
    function funA() {
        // 相对路径
        // location.href = '3.html'
        // location.href = '../0607/3.html'
        // 绝对路径
        location.href = 'https://www.baidu.com'
    }
</script>